import axios from '@/api/fetch';
//import * as types from './types';
import SERVER from '@/api/server';
//获取经销商
export const getDealerList = params => axios.post(`${SERVER.CMSCLOUD_CHANNEL}/message/dealerAttach/dealerInfo/allDealerInfoDetailSP`,  params );

//新增的保存
export const newSave = params => axios.post(`${SERVER.CLAIMFAC}/partAndDealer/saveOne`,  params );
//分页查询
export const getListByPage = params => axios.post(`${SERVER.CLAIMFAC}/partAndDealer/getListByPage`,  params );
//逻辑删除
export const deleteOne = (id, params) => axios.post(`${SERVER.CLAIMFAC}/partAndDealer/updateStatusById/${id}`,{params} );
//通过ID查  回显
export const selectById = params => axios.get(`${SERVER.CLAIMFAC}/partAndDealer/selectById/${params.id}`);
//编辑弹窗的保存
export const editSave = params => axios.post(`${SERVER.CLAIMFAC}/partAndDealer/updateByPdId`,  params );